GetHostByAddr

Syntax:

object.GetHostByAddr IPAddress, HostName

 

Parameters:

object

An object expression that evaluates to a WSResolver object

IPAddress

A string variable that represents the IP address (in dotted format) to resolve to a hostname.

HostName

A string variable that will be filled in by the object. It will represent either the hostname, or a string containing the word 'Error' and an errorcode.

Remarks:

Call this method to resolve an IP to a hostname.

The string variable HostName must be initialized prior to calling the method. In Visual C++, this means that you must first allocate memory for the string before passing in the LPSTR. In Visual Basic, this means creating a string variable of fixed length (see the example for GetAddrByHost).